import socket
from datetime import datetime

udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print(socket.AF_INET, socket.SOCK_DGRAM)
now = str(datetime.today())[:19]
ack_msg= now + ' hello,udp client '
addr = ('127.0.0.1',514)
udp.sendto(ack_msg.encode('utf8'),addr)